﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Evaluate/Evaluate.master" AutoEventWireup="true"
    CodeFile="BaseInputs.aspx.cs" Inherits="Evaluate_BaseInputs" StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>年份：<asp:DropDownList ID="YearList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="YearList_SelectedIndexChanged">
        </asp:DropDownList>
        </li>
    </ul>
    <div class="clear">
    </div>
    <asp:GridView ID="UserGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="DepartmentID"
        OnRowDataBound="UserGrid_RowDataBound">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单位">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                    <%# GetDepartmentName(Eval("DepartmentID").ToString()) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="一月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=1">
                        <%# GetScore(Eval("一月", "{0:0}").ToString()) %>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="二月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=2">
                        <%# GetScore(Eval("二月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="三月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=3">
                        <%# GetScore(Eval("三月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="四月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=4">
                        <%# GetScore(Eval("四月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="五月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=5">
                        <%# GetScore(Eval("五月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="六月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=6">
                        <%# GetScore(Eval("六月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="七月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=7">
                        <%# GetScore(Eval("七月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="八月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=8">
                        <%# GetScore(Eval("八月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="九月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=9">
                        <%# GetScore(Eval("九月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="十月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=10">
                        <%# GetScore(Eval("十月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="十一月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=11">
                        <%# GetScore(Eval("十一月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="十二月">
                <ItemTemplate>
                    <a href="BaseItemInput.aspx?DepartmentID=<%# Eval("DepartmentID") %>&Year=<%# Eval("YearValue") %>&Month=12">
                        <%# GetScore(Eval("十二月", "{0:0}").ToString())%>
                        </a>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="合计">
                <ItemTemplate>
                    <%# GetScoreAll(Eval("合计", "{0:0}").ToString())%>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Right" />
        <RowStyle HorizontalAlign="Right" />
    </asp:GridView>
</asp:Content>
